//
//  LocationManager.h
//  HdStore
//
//  Created by zhenqiu on 15/12/21.
//  Copyright © 2015年 zhenqiu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>


typedef void (^LocationComplete)(CLLocation * location, NSError * error) ;

@interface LocationManager : NSObject  <CLLocationManagerDelegate>{
    
    NSMutableArray * locationReqeusts;
    NSMutableDictionary * requestDic;
    BOOL isUpdating;
    
}
@property (nonatomic,strong) NSMutableArray * locationRequests;
@property (nonatomic,strong) NSMutableDictionary * requestDic;
@property (atomic,assign) BOOL isUpdating;


+(id) getInstance;
-(void) startLocation;
-(void) stopLocaton;
-(void) getLocation:(void (^)(CLLocation * location , NSError * error)) complete;


@end
